<?php
/**
 * 	app后台会员控制器
 * 	=============================
 *	Author: 褚天恩
 *  Date: 2017-10-09
 * @author Administrator
 *
 */
namespace app\wallet\controller;
use Think\Db;
use think\Request;
require_once (APP_PATH . 'api/RewardApi.php');
require_once (APP_PATH . 'api/FinanceApi.php');
class Test extends Base {
    public function _initialize(){
        parent::_initialize();
       
    }
    
    public function ceshi(){
//     	$member_id = input('member_id');
//     	$money = input('money');
		$member_id  = 2;
		$money = 24000;
    	$type = 2;
    	$goods_id = 1;
    	$orders_id = 1;
    	$content = 1;
    	$reward = new \RewardApi();
    	$list = $reward->begin($member_id,$money,$type,$goods_id,$orders_id,$content);
    }
    public function aaaa(){
    	$finance = new \FinanceApi();
    	$member_id = 1;
    	$finance_type = 15;
    	$content = '增值区订单-商品名';
    	$money_type = 1;
    	$money = 10000;
    	$account_type = 0;
    	$res = $finance->addFinance($member_id, $finance_type, $content, $money_type, $money, $account_type);
    	
    	
    }
    
    
    
    
    
}